package com.ydgk.jishuzhan.service.impl;


import com.ydgk.jishuzhan.beans.Score;
import com.ydgk.jishuzhan.dao.ScoreMapper;
import com.ydgk.jishuzhan.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ScoreServiceImpl implements ScoreService{

    @Autowired
    private ScoreMapper scoreMapper;

    @Override
    public void scoreAdd(Score score) {
        scoreMapper.scoreAdd(score);
    }

    @Override
    public List<Score> getScores(Map<String, Object> map) {
        return scoreMapper.getScores(map);
    }

    @Override
    public Integer queryScoreTotal(Map<String, Object> map) {
        return scoreMapper.queryScoreTotal(map);
    }

    @Override
    public int getCount(Integer userId) {
        return scoreMapper.getCount(userId);
    }
}
